import Vue from 'vue'
import ElementUI from 'element-ui'
import axios from 'axios'
import qs from 'qs'


import 'element-ui/lib/theme-chalk/index.css'
import 'normalize.css'
import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'

import App from './App'
import router from './router'

import echarts from 'echarts'

import store from '../src/store/index'

axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.withCredentials = true

Vue.prototype.$echarts = echarts;
Vue.prototype.$ajax = axios;
Vue.prototype.qs = qs;
Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.component('icon', Icon);

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    template: '<App/>',
    components: { App },
    store
})